*Fundamentals of Data Science Assessment Sheet

Matt Prill

Using mixture of typeset and images of workings out

See also Rmarkdown cheatsheet

https://raw.githubusercontent.com/rstudio/cheatsheets/main/rmarkdown.pdf

Typeset Example: Spearmans rmarkdown

\[\ r_s = 1 -\left(\frac{6\sum_{}D^2}{n(n^2-1)}\right)\]

Images

Note that you must use out.width and out.height to scale external images (fig.height and fig.width won’t work). To see images, must knit file

echo = FALSE` parameter added to prevent printing of the R code # Libraries

library(ggplot2)  # For Plotting
library(dplyr)  # For data manipulation

Q1

a)

ADD MATRIX GIVEN IN Q WITH ALGEBRA

Initial matrix (wrong term):

\[ \Large \begin{bmatrix} 1 & 1 & 1 \\ 1 & 10 & 4 \\ 1 & 4 & 10 \end{bmatrix} \]

Identifying Eigenvalues:

\[ \Large \begin{bmatrix} 1 - \lambda & 1 & 1 \\ 1 & 10 - \lambda & 4 \\ 1 & 4 & 10 - \lambda \end{bmatrix} \]